package daily.may0527;

import java.util.stream.Stream;

public class StreamConcatTest {
    public static void main(String[] args) {
        String[] Array1 = {"喜羊羊", "沸羊羊", "美羊羊", "懒羊羊", "暖羊羊", "灰太狼", "小灰灰"};
        String[] Array2 = new String[]{"张三", "李四", "王五", "赵六", "田七"};
        Stream<String> stream1 = Stream.of(Array1);
        Stream<String> stream2 = Stream.of(Array2);
        Stream<String> concatStream = Stream.concat(stream1, stream2);
        concatStream.forEach(s -> System.out.print(s + " "));
    }
}
